package byx.container.extension.jdbc;

import byx.container.annotation.annotation.ConditionalOn;
import byx.container.annotation.annotation.Register;
import byx.util.jdbc.JdbcUtils;

import javax.sql.DataSource;

@Register
public class JdbcConfig {
    @ConditionalOn(DataSource.class)
    public JdbcUtils jdbcUtils(DataSource dataSource) {
        return new JdbcUtils(dataSource);
    }
}
